package ooday01.homework;

public class CarTest {
    public static void main(String[] args) {
        Car bm = new Car();
        bm.brand = "宝马";
        bm.capacity = 5;
        bm.price = 666666.88;
        bm.color = "蓝";
        bm.start();
        bm.run();
        bm.stop();

        Car ad = new Car("奥迪", "白", 808080.66, 7);
        ad.start();
        ad.run();
        ad.stop();

        //未赋值，均为默认值
        Car bc = new Car();
        bc.start();
        bc.run();
        bc.stop();

    }
}
